import request from '@/utils/request'

// 提交反馈
export const createFeedback = data => {
  return request({
    url: '/feedback/createFeedback',
    method: 'post',
    data
  })
}

// 反馈信息获取
export const getFeedback = params => {
  return request({
    url: '/feedback/getFeedback',
    method: 'get',
    params
  })
}

// 反馈信息获取
export const getFeedbackmohu = params => {
  return request({
    url: '/feedback/getFeedbackmohu',
    method: 'get',
    params
  })
}

// 修改信息
export const updateFeedback = data => {
  return request({
    url: '/feedback/updateFeedback',
    method: 'put',
    data
  })
}

// 删除
export const deleteFeedback = data => {
  return request({
    url: '/feedback/deleteFeedback',
    method: 'delete',
    data
  })
}
